package com.zy.web.demo.duoxiancheng.demo20;

import java.io.PipedInputStream;
import java.io.PipedOutputStream;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/20 14:29
 */
public class ThreadB20 extends Thread{

    private ReadData readData;
    private PipedInputStream input;

    public ThreadB20(ReadData readData, PipedInputStream input ){
        this.readData = readData;
        this.input = input;
    }

    @Override
    public void run() {
        super.run();
        readData.readMethod(input);
    }
}
